﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication2
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.PreviousPage!=null)
            {
                TextBox tb1 = (TextBox)PreviousPage.FindControl( "TextBox1");
                TextBox tb2 = (TextBox)PreviousPage.FindControl("TextBox2");
                TextBox tb3 = (TextBox)PreviousPage.FindControl("TextBox3");
                if (tb1!=null)
                {
                    Label1.Text = "你好！"+tb1.Text.ToString()+",你的年龄是:"+tb2.Text+",你的爱好是:"+tb3.Text;
                }
            }
        }
    }
}